module.exports = function initUserPage() {
	let {
		userComp,
	} = $['components-jq']
	userComp.dataGrid = $("#main-tabs-project")
	userComp.formDialog = $("#project-form-dialog")
	userComp.form = $("#project-form")
	userComp.formName = $("#project-form-name")
	userComp.formDesc = $("#project-form-desc")
	userComp.formServerUrl = $("#project-form-serverurl")
	userComp.formTeam = $("#project-form-team")
	userComp.formBtnSave = $("#project-form-btn-save")
	userComp.formBtnCancel = $("#project-form-btn-cancel")
	initDailog(userComp)
	initDataGrid(userComp)
}

function initDailog(userComp) {

}

function initDataGrid(userComp) {
	let {
		userJQ
	} = userComp
	userJQ.datagrid({
		fitColumns: true,
		columns: [
			[{
				field: 'id',
				title: 'ID',
				width: 50
			}, {
				field: 'name',
				title: '变量名',
				width: 100
			}, {
				field: 'content',
				title: '含义',
				width: 100,
			}, {
				field: 'type',
				title: '类型',
				width: 100,
			}, {
				field: 'remark',
				title: '备注'
			}]
		],
		data: [{
			name: 'xxx',
			code: 'xxx',
			price: 2,
		}, {
			name: 'xxx',
			code: 'xxx',
			price: 2,
		}]
	})
}